#include "cqmlbasesynctax.h"
CQmlBaseSynctaxCpp* CQmlBaseSynctaxCpp::m_pInstance=NULL;


CQmlBaseSynctaxCpp *CQmlBaseSynctaxCpp::Instance()
{
    if(m_pInstance==NULL)
    {
        m_pInstance=new CQmlBaseSynctaxCpp();
    }
    return m_pInstance;
}

void CQmlBaseSynctaxCpp::setObj(QObject* Obj)
{
    qmlObj=Obj;
}

QObject *CQmlBaseSynctaxCpp::getObj(QString ObjName)
{
    return (QObject *)qmlObj->findChild<QObject *>(ObjName);
}
